package main

import "fmt"

func main() {
	// var c1 chan int
	// fmt.Printf("c1: %d, %d, %v\n", len(c1), cap(c1), c1)
	// c1 <- 111
	// <-c1

	// c2 := make(chan int, 0)
	// fmt.Printf("c2: %d, %d, %v\n", len(c2), cap(c2), c2)

	c4 := make(chan int, 8)
	fmt.Printf("c4: %d, %d, %v\n", len(c4), cap(c4), c4)
	c4 <- 111
	c4 <- 222
	fmt.Printf("c4: %d, %d, %v\n", len(c4), cap(c4), c4)
	<-c4
	t := <-c4
	fmt.Printf("%T %[1]v\n", t)
}
